[#include "/WEB-INF/pages/common/taglibs.ftl"]
<div id="roleContent" class="role_content">
	<a href="${action.backurl}" >返回</a>
	<form action="[@c.url value="/manage/Role_${act}.action"/]?backurl=${action.backurl}" method="post">
		<input type="hidden" name="role.id" value="${(role.id)!''}" />
		<input type="hidden" name="id" value="${(role.id)!''}" />
		<table>
			<caption>角色的数据内容</caption>
				<tr>
					<th>角色：[#--[@fmt.message key="manage.role"/] --]</th>
					<td><input type="text" name="role.name" placeholder="请输入长度大于5位的角色" value="${(role.name)!''}"/></td>
				</tr>
				<tr>
					<th>标题：[#--[@fmt.message key="manage.article.type"/]--]</th>
					<td><input type="text" placeholder="角色标题" name="role.title" value="${(role.title)!''}"/></td>
				</tr>
				<tr>
					<th>角色描述：</th>
					<td><textarea placeholder="您来自哪里" name="role.description">${(role.description)!''}</textarea></td>
				</tr>
				<tr>
					<th>有效期限日：</th>
					<td><input type="text" placeholder="角色有效期限日" name="role.expireDay" value="[#if (role.expireDay)?? ]${(role.expireDay)?string('yyyy-MM-dd')}[/#if]"/></td>
				</tr>
				<tr>
					<th>可用：</th>
					<td><input type="checkbox" name="role.enabled" [#if role?? && (role.isEnabled())==true]checked="checked"[/#if] value="true"/></td>
				</tr>
				<tr>
					<th></th>
					<td><input type="submit" value="提交"/></td>
				</tr>
		</table>
	</form> 
</div>